Simplify Gradient Map filter and make it usable as a filter layer.
There's some awkwardness with the first two generic gradients as the color isn't stored, but this is good for now.
Fixes T1837