Docx writer: Section numbering carries over from reference.docx.

Closes #1305.