API: raise a TypeError when isin is passed a string

closes #4763