Fix algorithm setter argument validation for uchar