loader: ensure that type-resolution methods return a type from the receiver's registry
loader: ensure that type-resolution methods return a type from the receiver's registry

Some methods (namely, the ones that do opaque-related resolutions)
query imported typekits for types, which in turn return types from
the typekit's registry, not the loader's

Resolve the type locally to fix this.

doudou/modelkit-component,doudou/modelkit-component