Fix an overly-narrow assertion in cv::norm

`size()` requires that the matrix is two-dimensional, and `norm()` works on higher dimensions.