Tidy up and fix several tests in tests/cases.
Eliminate undefined behavior in test_sscanf_other_whitespace.in.
Merge pull request #2178 from sunfishcode/incoming

Testsuite cleanups