Fix for Enum.class not being accepted as an parsable enum type.