Fix a bug in ocl::addWeighted x64 mode

And a potential problem in remap