Fixed insertion/deletion bugs, see tests testInsert64KBug1() and
testInsert64KBug2().