[PATCH v4 3/5] qapi: Move compat policy from QObject to generic visitor