DOC Better explanation of debug modes
BUG Fix crash with close_holes

The code did not check correctly for whether the input was 2
dimensional.