Small fix in the renderer and in legend

This PR adresses #500, #499, #496. This three bugs were all quite easy to fix, fortunately. That's funny to see that we've caught them thinking they were only bugs in the simple style editor.

About #499 : what I've made may have to be changed according to the evolutions of the SE specification.