Returns a deep copy of a CompositionNode. If insert is true the copy is inserted at cursor.
a deep copy of the node