Implement serialization of MeldForce and RdcForce.