Fix line accuray issue, remove some duplicate code, do not force width = 1 on 0. Fix object render method to render 0-dimensions lines

Check how this version could behave in general rendering.
Merge pull request #1825 from asturur/Line-tests

Line accuracy issue in pathgroup with high zoom level