Add `map` for trees using `foldt`.