Fix for infinite digest in ng-repeat and getSourceItems when allowDuplicates === false