Better handle aliases in snapshot content
Fix some issues related to aliases in snapshot content spotted after swh-loader-git!24 (closed) landing.
Basically, some redirections were missing as such cases were not yet encountered.
Depends on D2167
Migrated from D2168 (view on Phabricator)