fix bug with bitmap colour selection.
also make 16bit charset mode meaningful in bitmap mode by allowing
selection of foreground and background colours from 256 colour
palette.
remove erroneous top nybl padding when calculating 256-colour
bitmap colours.
fix clamping of colour registers based on VIC-II/VIC-III mode.