Minor performance improvement for the component class
Minor performance improvement for the clone functionality of a tree
Minor changes in the clone functionality to make the code more readable