accounting for array indices in brack notation regular expression in 2.x

https://github.com/angular-ui/ng-grid/pull/1351 - fixing the array indices issue in the 2.x branch. Also, wrote test coverage