Fixes application of evenodd fill rule and adds auto-closing of shapes iff a fill style is set