add istype to canning

allows strict type checking, but accept tuples to check like isinstance.