[Validator] Fixed Constraint class to not destroy custom groups upon serialization