Added groupBy1 and renamed groupByM to groupWhenM
Re-added groupByM with deprecation message
Merge pull request #361 from oxbowlakes/groupBy1

Added groupBy1 and renamed groupByM to groupWhenM