EPUB writer:  more transition.

Changed toChunks to toChapters.
EPUB writer:  Improved behavior with `--number-sections`.

* Headers with "unnumbered" attribute are not numbered.
  (Nor do they cause an increment in running numbering.)
* Section numbers now work properly, even when there is
  material before the first numbered section.