(angular-ui-router) Set `toPath` argument to any

The `toPath` argument on `IUrlRouterProvider.when` can also be a function that returns a string and an injected function (i.e. any[]).