Fix the support for types that extend a basic type. This used to be just
dropped.