Declare metatypes also with Q_DECLARE_METATYPE to enable QVariant casting