Allowed for a slight wiggle room for bbox spatial relations.
Sensibilized pointInPolygon() for points close to line segments.

This commit looks messy because the CCW statements had to be rewritten.
Fixed bad logic for on-boundary points.