qga: make split_list() return allocated strings