Fix the params type in angular-ui-router

The params type was updated in angular-ui.

See the API documentation here:
http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$stateProvider

It changed from an array to an object. I don't see a better way to express the type until TypeScript gets union types.

I also added a test for it.