Fixed subtle bug causing polygons with large integers to be reversed because of the wrongly typed predicate