Added routines to check, that the values aren't out of bound - like it is done in \Imagine\Image\Palette\Color\CMYK