input: Convert to new qapi union layout