Revert "Parse type name as reference node"

This reverts commit 7c491acec7ad77252128b4fdad23b7e3918b0389.
Add type definitions to visitor
Add name declaration for type definitions