Replace try/except in _to_obj/to_dict for typedfield lookups