fix for issue #3479 (Algorithm::set UCHAR)

http://code.opencv.org/issues/3479