Ability to get output from ElementEncounter
Fixed StackOverflowError for TemplateException