Implement serialization of empty array/dict in encodeQueryString.