Optimization when State#getByPath checks field names for ObjectMethods.