Small fix so you can pass an IRegion to add_iregion_index and add_iregions_index