Changing $UrlRouterProvider.when to test for signature compatability with UrlMatcher the same as $StateProvider.registerState