Add degenring test that demonstrates degenerate ring issues.
Refactor tilesegment handling and fix localMin/localMax functions to handle start/end of ring min maxes.
Merge pull request #60 from mapbox/degenring

Degen ring testcase (+fix)