Added support to ExtensionRewriter for skipping specific subtrees of a node during traversal.