Fix some QJsonValue issues when appending to a QJsonArray.