Fixed issue: Mat::copyTo(UMat) if device copy is obsolete. Added test.