merge NestedMatrixExpr into MatrixExpr