iqblock.c: fix paletteram regression, cleanup (nw)