bug fixes in xbel loader and exporter.