terminfo: Stop broad `convert` methods from invalidating the terminfo reader
The extended capabilities were collected into their `Dict` from
`Iterators.flatten` over the flags, numbers and strings, which has no known
element type, so each value went through `convert` on an untyped value. A
package that adds a method such as `convert(::Type{S}, ::MyType) where
S<:Union{AbstractChar,AbstractString,Number}` then invalidated the reader,
and with it `get_have_truecolor`. The values are now collected into a
typed vector first.
Assisted-by: Claude Code (Claude Opus 5.5)