Upstream changes: 3.01 2021-04-15 - The type_is method now handles both string and numeric codes. Thanks to @poslfit for reporting (GH#26).