rewrite cuda::cvtColor with new device layer and fix test failures
fix cuda match template:

use correct types for integral/sum outputs
fix tests for match template
disable sanity test for GeneralizedHoughGuil

the algorithm is not stable yet
disable GeneralizedHoughGuil performance test
Merge pull request #3546 from jet47:cuda-imgproc-fixes