(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[]).
Explode all combinations
Add tests
Fix tests
More tests for angular-ui-router
Merge pull request #1637 from santialbo/patch-2

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