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