toStandardTypeOrUndetermined

Return a StandardType or CustomType wrapped in ValidAbstractType or InvalidAbstractType:

A StandardType can be valid or invalid. A CustomType is always wrapped in ValidAbstractType.