Fixed #135 -- better container allocation when removing nodes.