extend test
optimise string-to-something comparisons also when we know that the result is boolean (the cmp functions have a proper fallback for non-strings)