Fix imprecision in #getNearestLocation()
Improve stroke hit-testing.