refactor(di): removes an unnecessary hash lookup

This speeds up `injector.get` by 30%.