itech32.c, btime.c, scregg.c: fix generic_paletteram regression (nw)