Fix an issue with keys output for multiple output batches of hash aggregate.