rewrite uid-dup checking to be new-export-aware, closes: #431