DAR-2614: TOC: pages that start without an H2 have broken TOC levels

Fixes issues with same level and broken (skipped levels) headings;
Added new test cases to the spec;