Return a query cursor for aggregation pipelines ending with $out

This behavior is similar to what is already done in the mapReduce wrapper when an output collection is specified.

Kudos for @munkie for originally suggesting this in #187.