DAR-810 Added local caching for Template Engine

Typo fixes
Added missing self:: for class constant
Added local cache for template engine to avoid multiple instantiations
if the component is rendered more than once.