Forbid use of shallow copy for tree-like data structures