Replaces the node at offset index_ with node.
index_
node
a Path
index to the existing node
the replacement node