Fix aliases not having their name in the XML

For some reason generateDS' to_etree function doesn't set the text
attribute on the element if the element has no nested children
Only create alias and relation lists if there are any