Properly handle exports when there are multiple lists
If there are multiple lists whose index does not match their position
in the contents, things weren't handled properly.
Patch by: Sverre Rabbelier
# test settings file with no errorsfoo = 3bar = foo