fix bug where Polygon.contains

could give an incorrect answer when a ray passed through a vertex