Reduced type severity of templateProvider in IState interface

templateProvider can be an annotated function (any[]) like controllerProvider, so any is a more appropriate typing.
Merge pull request #2683 from thetallweeks/master

Reduced type severity of templateProvider in IState interface