Bugfix: Template information not stored in correct scope

If EmailTemplate was used to render multiple different templates in rapid succession it would always use the last template called for every render. This update moves the non-static data into a scope object.