node:tree() now already copies the tree before returning it, for memory safety reasons.
@private
@nodoc