fix stringify for XML, add some empty object tests for stringify