Creating custom deserializer to handle both scenarios for OpenMRSPersonAttributeType