Fixed bug that prevented detecting aliases in Container::register.