Use marginalized_parameters attribute for reconstruction
I'm looking at implementing marginalization over a new parameter and found that there was a bunch of hard-coded stuff I needed to work around.
This MR should make the whole process of the reconstruction more flexible using the _marginalized_parameters
attribute.