removed some TODOs
added support for C_palette() and proper support for C_palette2(), plus a test case for both