T-API: cv::matchTemplate fixes and improvements

<b>merge with opencv_extra https://github.com/Itseez/opencv_extra/pull/131</b>
check_regression=*OCL*ImgSize_TmplSize_Method*