[RFC 01/15] scripts/qapi: support type-based unions