Fix dither data width assertions and related tests

Fixes 32-bit export

This was broken from the start, and was broken in a new way in
52309c0c4fc107cdde9a99f2340fe4d8cf4ff382
Add -fno-omit-frame-pointer to AddressSanitizer options
Add unit test runner (artest) and a config option to run tests after builds