Implemented a fix that prevents the tree diff code from modifying shared component nodes.