Fix q listof mat indexof

I beleave that the operator == should compare the instances, so alle the container classes can use indexof instead of comparing the elements itself (rarely used).
Second, the approxPoly c++ function should handle Point2d values for large coordinates.