Serialization support for MonteCarloMembraneBarostat and MonteCarloAnisotropicBarostat