Rewrote LineDissolve, faster and more correct.
Merge pull request #914 from lossyrob/line-dedupe

Rewrote LineDissolve, faster and more correct.