[Curl] setOptions should merge config items that can be arrays
Merge branch 'hotfix/4213' into develop

Forward port #4213