Add treelike helper.
Map folding.