Fix Polygon::contains_point() overflowing on Windows. #1950