Frees all colors (except for black and white).
If set_palette_type_rgb was called, this will also change the color system back to using a color table.