Convert unit tests to use DUnit
Fix ugly bug in matrix.pas

TMatrix.CreateFromArray was causing access violations and other bad
things. Hopefully fixed.