Handle empty array when encoding URL parameters

Alamofire was not including parameters whose value was an empty array in the URL request. I've added a check to handle an empty array, as well as two tests to ensure consistent behavior between URL and JSON parameter encoding.