Support AggregateFunction.merge()

To eliminate saving of rows in interim data.