to3000 upgrade: handle duplicate of reference analysis