Do clamping in color space traits properly.
Previous version just didn't work. This fixes the HSL output.
Ref T2438