list_structures: print tree names as comma separated list