Coding up a possible alternate API for the streams version of
selectAggregates(), which is necessary because a stream can't be used
more than once when calculating multiple aggregates.