Further simplify getNearestPoint() algorithm.
Merge git://github.com/paperjs/paper.js