fix(injector): allow multiple loading of function modules

move the loadedModules lookup to be performed only on strings in order to allow loading functions that look the same. this issue caused only the first `angular.mock.module(object)` invocation to work since the loadModules lookup blocked all following invocations.

closes #7254
It is the same. @IgorMinar changed it in https://github.com/angular/angular.js/pull/7759