Added some 'unsigned int cast' to a few lzw setter (was previously done,
but got merged away)