Bugfix: fix overflow in groupby

When grouping by multiple columns in a large-ish `DataFrame`,
the Uint16 sort value has the potential to overflow if there
are a large number of categories.  This forces it to be a
Uint64.

Rewritten as a comprehension, as suggested by Harlan.