storage: Fix objects loading when using generator parameters
Some objects (directories, origins, releases, revisions) will not be added
into the storage if they are provided as generator parameters to the *_add
methods instead of lists.
So ensure to transform generators into lists before processing the objects.