feat: follows $index change in ng-repeat

This works for the case I mentioned in #143.
Would someone review if it's the right way?