Two points:

1) add children extractor based on printing work (and
   thus compatible with snippets extractor)
2) try to get rid of contextStack, because it is not available
   as expected when printing a single Template