this fixes an issue where optimize O2 was forced on any file that included AP_Math.h. It also fixes the test suite for matrix_alg, and fixes the type handling to be consistent