API: raise a TypeError when isin is passed a string