Fix for broken raycasts, changes how findNearestPoly works, slight API change

- test case supports raycasts
- changes how findNearestPoly works directly over polygons
- API change: findNearestPoly has additional parameter
Merge remote-tracking branch 'upstream/master'