Rename idx to cube_idx
Shut the fuck up, text loader, no one cares. :rage3:
init a badsquare for tests

 * The test init/cleanup for index have been generalized
Headers, because it's getting crowded.
Test for map_polys_with_index() with map_bisect_edges

Makes sure that a badly made square gets a vertex added to a polygon