Serialize Handlebars AST into string