collection: allow "pipeline":[] or "0":{} style for aggregation.
doc: update the aggregation example to reflect new desired format.