polygon_clipper: detect invalid winding order when in debug mode