fixed empty elements in marshalled xml/json output