Use instanceOf rather than SC_Polygon

This fixes OSGi integration