enum classes should have their own serializer and not try to use the generic object serializer