Increase the maximum region length to 32 bars, and quite a few incidental
fixes to make it happen...  Any future changes to this value should just
be a matter of changing the C and Python variables...