Data.List: Fix group_by for non-string type