to_disk: Ensure all file hashes are used when fetching its bytes
Previously only a couple of them were cherry-picked.
Also add objstorage typing and use swh.objstorage.interface.objid_from_dict to remove some explicit type casting.
Previously only a couple of them were cherry-picked.
Also add objstorage typing and use swh.objstorage.interface.objid_from_dict to remove some explicit type casting.