Add the type function to angular ui-router url matcher factory

Add the type function to angular ui-router url matcher factory. Also add a test for it. 

The function is defined here: 
http://angular-ui.github.io/ui-router/site/#/api/ui.router.util.$urlMatcherFactory#methods_type