ContextReference needs to rewrite its children recursively