Fix github #537 : force text rendering mode for templates

Add method forget_text_rendering_mode! to drop the text state when
working with templates.