#267 factor out petl.transform.dedup and petl.transform.setops