Minor cleanup on tests.
Rename xml_document.c:duplicate_node to _document
Capture non-parse errors from Document#dup

Fixes #1196
Updating CHANGELOGs to reflect previous work