WC3/xan: move palette handling to decoder, avoiding need for