PHP-875: Add support for cursor for aggregation