Add xmldecl creation

Without this commit, the created documents have ne xmldecl.

This commit adds a temporary stop gap, the xmldecl is added on creation
of root_elements and is automatically set to version 1. This will be
revisited in the future.