componentToXML() now handles components without values
added comment reminding what needs to be done to get componentToXML() to behave properly
moduleToXML() 'sources' now only adds 'type' and 'order' attrs to source nodes when these are present - tidier looking XML output