Update groupby to allow grouping Ranges

* Not really that useful, but it makes the original perf test actually
  work.
Merge pull request #32 from JuliaLang/groupby_update

Update groupby to allow grouping Ranges