Support aliases for numeric branches. Fixes #3461