HCOLL-267 fixed serialization issue with GenericEnumMarshaller