D2K palette fixes

Fixes issues with palette remaps and cliffs.