Implemented output of lightweight polylines

Polyline, Polygon, Rectangle and Square now generate LWPOLYLINE instead of a pile of LINEs.