Fix parsing bug for subrange types in xml file