Fix model reflection methods

This is used by simple_form and nested_form.