Support "unwrapping" templates like {{self}}

Templates like {{self}} contain other templates as named parameters. This pull request adds an unwrapTemplates function that creates TemplateNodes for such named parameters, which must be hardcoded into config/transform/TemplateTransformConfig.