TEZ-1260. Allow KeyValueWriter to support writing list of values