Revert from mapreduce to aggregate

> This could probably use a rename

Struggling to find a name. getObjectIdsByKey(...)?