Use order-stable uniqify in group_by operation