Allow passing a block to Enumerable#group_by_unique