Shared/maps: fixed a few region bounds checks that were missed early on, causing edge regions to appear invalid.