Fix for #112

I think this should also fix cases with zero-sized partitions, but when I tried to set up a test case it seemed to ignore what I set with vex::set_partitioning.