Added check for operation tree copying from parser