Convert a tree containing only basic data types, annotated with tags, to a tree containing custom data types.
tagged_tree_to_custom_tree()