pub fn is_text(ty: &Type) -> bool
Whether text is the whole of a type: text, or optional or listed text.