1) Refactor palette comparison fast path mechanism to avoid using mutable member of Source, 2) Attach palette to texture as soon as needed, 3) Bugfix attach CLUT copy only when pal > 0.