Tweak the order tests are run in
Fix potentially broken memory allocation in arrays caused by confusing signed and unsigned ints