Move quat tests to end of file
Make global quaternions work with dmd, ldc
Move/refactor some tests for vecs
Remove some extra parens
Avoid needless init
Formatting
Optimize near_equal(mat, mat) by unrolling loops