in StreamingAggregate, don't sort if there are no keys
fix deadbuf by skipping empty batches
minor fixes