Basic serialization for Constraints.