Issue 190 - Implement groupBy r=millermedeiros

I supposed this could also be `array/groupBy`?
TODO: add a test for string as second argument like `groupBy(['lorem', 'foo', 'bar', 'baz'], 'length')`