toStandardTypeOrUndetermined
Return a StandardType or CustomType wrapped in ValidAbstractType or InvalidAbstractType:
StandardType if member of a kotlin type StandardTypeMap
CustomType if not.
A StandardType can be valid or invalid. A CustomType is always wrapped in ValidAbstractType.