Simplify a tree which contains a single item, component not working

Simplify removes all those indices that are shared amongst all the paths in a tree. If there’s only a single path, the concept of ‘shared’ no longer works.