fix(ng-repeat): should correctly handle detached state