fixed bug in remove_unbranched_internals, which ignored the root