handle deprecated pre-defined types for 17.0 and later

We need to either do this or `nowarn_deprecated_type` but that would break in 18.0 when the types are removed.