Issue #3131820 by jungle, mero.S, quietone: Replace assertions involving calls to is_string() with assertIsString()/assertIsNotString() (cherry picked from commit 0dfb1d0d)