fix(ie8): fix calls to indexOf and filter

Closes #1556
Merge branch 'master' of https://github.com/angular-ui/ui-router