[lib] merge mustache tree as subtree