Added a simple test that changes index bases while resizing (thanks to wasti.redl@… for this code, which caught a bug).