feat(ngRepeat): add $prev and $next properties to ngRepeat

- Adds 2 new properties to ngRepeat item scopes: $prev and $next
- Adds tests to corresponding changes
- Makes simple refactoring on comparison used couple of times for better readability

Closes #9740