Fixed an issue where QObject based cases were not resolved correctly due to their derived classes being cast off in QVariant