Hardened some of the type definitions for ui.router.$state.