dzn: Fixes for new CTS tests
I updated my local CTS to 1.3.7.3, and new tests found a few bugs. These, plus a couple CTS bugfixes, plus a couple WARP bugfixes, pass the CTS 100% on WARP. Now on to hardware.
The last patch will be dropped before being merged, but I'm close to being able to actually merge it in.