Unify rules for default color palettes

The rules for choosing default color palettes when variables are mapped to different colors have been unified (and thus changed somewhat). Now when no specific palette is requested, the current global color palette will be used, unless the number of variables to be mapped exceeds the number of unique colors in the palette, in which case the `"husl"` palette will be used to avoid cycling.