Optimization to fetching vertex and vertex count from geometries.
Merge pull request #911 from lossyrob/line-dedupe

Optimization to fetching vertex and vertex count from geometries.