Removed unused code
TemplateParser: moved output coalescing outside of the loop
TemplateParser: optimize away redundant closeTag nodes