Fixes in matrix2.DoubleMatrixDataset