MongoDB: use cursor for aggregation in .topvalues()