Fix typedef handling