More simple2dmatrix bug fixes