IE8 fixes for indexOf and event delegation in ng-repeat as mentioned in issue #158 (reference to #118 and #120)