add function to modify child list in-place

(hacky, but needed for hal2maf block tree building to be fast enough)