new version of the custom_fields gem: make sure the type of a custom field is correct