Fix bug in to_param_string when expanding array values