Fix init_empty() to never try to initialise iterator_ranges.
Fix some associated tests.