Fixed issue: Mat::copyTo(UMat) if device copy is obsolete. Added test.
Merge pull request #3055 from akarsakov:copyto_UMat_fix