jan/fix/20261102-lib-util-copy-move-closure-copy-tree-to-top into master __copy_tree() is a closure inside copy(), and per janware coding conventions, closures should be defined at the top of a function with preceding code, so move it to the top of copy(). Signed-off-by: Jan Lindemann <jan@janware.com>