remove the currently accessed section from the list
If the argument is present then all the sections in sectionlist are
removed from sl.
Returns the number of sections removed.
Appends all sections which have a path to the section.
(including the currently accessed section). The section list has the
important property that the sections are in root to leaf order.
Removes all duplicates of sections in the SectionList. I.e. ensures that
no section appears more than once. Returns the number of sections references
that were removed.