polylines, polygons clean up

@aesnyder @gitnik @cthrax @zacronos more for a paper trail here on a PR