Add test for ambiguous marching square cell cases
Fix infinite loop from input with only 4 vertices