Fixed handling of adjustments to sequence lengths when columns are
inserted or deleted.