Previously to_kv_list assumes that all values happen to be string type. In this
commit we are taking care of values which are also type list/slice. In future
commits we will have to take care of values which are also of type dicts
Change-Id: Ie670c91d9880638d04cadf2acc32e7aa0400ca2c