Bugfixing in TemplateEngine:Loop evaluation, prototype running