qapi: Simplify error reporting for array types