implement to_string for template elements, helper and template.
added raw helper.