Without this, docker run fails with multiple errors (in order, one error appears after another):
- swh.core.api.RemoteException: <RemoteException 500 AttributeError: ["'dict' object has no attribute 'url'"]> [1]
- TypeError: can not serialize 'map' object
- TypeError: can not serialize 'set' object
So this diff fixes fixes the following problems:
- fix self.origin being a dict instead of an Origin model object [1]
- `map` is not ok when calling `storage.content_missing`
- set are not ok when calling `storage.{revision|release}_missing`
[1] My best guess is that the mistyped method annotation is not properly overridden
without it.
No idea why the tests do not capture any of those issues though.
I'm just unstucking this so people can run it within docker.