This also:
- adds type to impacted methods along the way.
- simplifies a bit the current deposit_read tests
In another deposit diff, I plan to refactor the deposit_read output and add
some docs about this. In another deposit loader diff, I plan to adapt the
loader to this new format change (so it sends that raw information in the
metadata storage instead of the current transformed metadata)
Related to T2649