Handle alias targets in a Branch
Resolve alias targets recursively and return the final target along with the resolveChain list. Maximum recursion depth is kept to 5. Return None in case of a missing or invalid chain.
Migrated from D9002 (view on Phabricator)