feat(injector): instantiates a provider if given as a constructor function