Add index to TOC and clean glossary page-sequence generation