Serialize Handlebars AST into template string