Added _groupBy

Just a first draft, and a bit limited -- only accepts Things as its
input for the time being.  But it's a good start, and seems to work for
the most common case.