New unit tests, plus a JS based generator for the typedmatrix data format