Fix the method signature of the alias() callback.
Handle extensions aliases.
Handle real_name of extensions.
Add tests for alias and real_name.