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