Tidy up and fix several tests in tests/cases.
Eliminate undefined behavior in test_sscanf_other_whitespace.in.
Work around an alignment bug in cube2hash.