Fix #2187: add .cursor() helper for aggregation to enable agg cursor