buildChunkNode is iterative

In buildChunkNode addBranchChunk is called to end-insert children. This should be able to collect all children and insert them in one batch using an accumulator.