Fixed mishandling of built-in typedef refs