minor: fixes for new ref-toc generation