check aggregate dups, abstract the check, closes #426