added the asSubType helper to a.tools.model, refactored LxmlTools d2xml to use createNode consistently