Added the flag 'IsRecursive' to ReplaceSubNode. Close #146.