map_trees deals with both string and table trees

Fixes #178