Handle TOC entry without a hierarchy level number

TOC entries like 'Bibliography' and 'Index' do not have level number, so
use '-' to label them as the root entry. Other entries under sub-entry
is labeled by '.' with number that equals to their level.