Fix array parameters and parameters with repeated values to be correctly signed when generating signature base strings.