refactor(injector): introduced ResolutionContext to simplify circular dependency detection