Better output reporting when a duplicate key is generated.