Add an extra check to enforce that an EnumMarshaller actually produces an Enum