Tree to tree equality&copying. Custom Error catching