SerializerPojo: fix handling of subclassed Enums. See #266