Fixed Q_DECLARE_METATYPE generation for typedefs