GSR: Encode linestring as multilinestring rather than failing
Process layers before encoding JSON to avoid exceptions mid-encoding
Support classbreaks renderers from SLD
Corrections to ClassBreak handling