Fix #2114: add allowDiskUse helper to aggregation