Complete path and polygon/polyline parsing refactoring. Coordinate rounding bugfix.