Bugfix: A typo in dividePoly can cause stack overrun when several vertices happen to fall exactly on cell boundaries