Simplify algos.snapshot.snapshot_resolve_alias.
- rename branch_info to last_branch
- exclude the last_branch from 'branches', so that: a) it never needs to contain a None value, so we don't need a cast b) no need for slicing
Migrated from D4413 (view on Phabricator)