math: more
a bunch of fixes
simpleton tests are SDL-based now