Corrected existing deepCopy bug.

For some reasons BaseR shows to have deepCopy method in it but no copy
constructor. Fixed by decoupling copy constructor and deepCopy method
autogeneration.
NodeVisitor can terminate visiting for current branch.