fix walk_replace for case where value is list of strings