Fix setting TLS options

Parameter order in array_interesect_key was preventing new options
being set.