fix exporting nested items as xml. fixes #66