accounting for array indices in brack notation regular expression

https://github.com/angular-ui/ng-grid/pull/1351 - fix so as to merge the 1351 changes into the 3.0 branch.