Ignore case when parsing `script_values_sorted|unique` in aggregations.

Close #5009