Allow _.groupBy to create dictionaries for O(n) lookups