improved twig debugging for document node