RecordCollection aggregation optimisations
Closes T113