Add tests and documentation for XML encoding of JSON null