Allow group to use a function in place of a key dict
Merge pull request #1 from trenton42/master

Allow collection.group to use a function for group keys