Changed the polygon tests so that they run with either a list of Vector objects or a list of IntersectionPoint objects.