This is what I was talking about. I think this failing test shows the problem:
https://github.com/vojtajina/angular.js/commit/4d152c8cf081d3d5d779aa19eda937ea8aeab689