Lots of fixes for boundary cases between regions and chunks.