Use data structures where order remains constant over time [1471]

Also needed to find the correct adapter index when unpersisting multibanded data files.
This is all related to the issue with RGB bundles not unpersisting correctly.