[libvirt] [PATCH 19/22] apibuild: Simplify type checking of literals