[libvirt] [PATCHv3 3/4] util: Add helper to assign typed params from string