fix: resolve nested refs within others object types
Fixes refs like #byteSlice in object types not resolving to their
GraphQL types. The issue was that local refs weren't being expanded
before lookup in the object_types_dict.
Changes:
- object_builder: expand local refs before map_type_with_registry lookup
- builder: refactor extract_ref_object_types to build in dependency order
- Add tests for nested refs in others and cross-lexicon refs