Factored out common code in bitarray splice! and delindex!