Neatened up XML generation

Null XML elements now disappear, allowing itemStacks to collapse
Also, load/save exceptions are properly sent to debug() now