qapi: fixup command generation for functions that return list types