Optimised conversion from package aliases to names