fixed a bug where I wasn't writing setting the :altered? flag on
internal nodes after replacing their keys