WIP: Initial implementation of PHP 875: command cursor (aggregation)