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
class GenericViewError(Exception): """A problem in a generic view.""" pass