Shared:  Added ordNub.

API change (adds export).
Templates: use ordNum instead of ord.

Closes #1022.
Version bump to 1.12.5.
Docx writer: Simplified abstractNumId numbering.

Instead of sequential numbering, we assign numbers based on the
list marker styles.  This simplifies some of the code and should
make it easier to modify numbering in the future.