Make sure a session tree has no duplicate entries.