Fixed hook aliasing. Aliases in hooks hash are now replaced with real hook types.