I don't see the point of this change?;

After checking the code, I can confirm that “colorize” does not have different types, it only implements HSL and ignores that setting.

On top of that, I’m afraid its way to desaturate the input first is only correct for linear RGB. It’s the same issue that the desaturate filter in BT.709 mode has, the result will not match what you get from converting sRGB to Gray/Alpha although you’d expect that.