Fixes to aggregation examples in documentation.