added some more tests for projections at the end of an aggregation expression.
refactored such that the last projection in a pipeline is always run client-side.