Handle type aliases which are used in the same file as declared.