Docx Writer: Initial support for --toc option

More idiomatic approach (which is, as a side effect, a little more
optimal)