update key value parser to create array for duplicate keys