Recalculate the palette condition when deriving from default palette.

Otherwise we will end up with multiple default palettes rendering DCG useless as it will always have more than one matching palette.

Depends on PR #16 #17 #18 so merge them first.