Fixing serialization of multidimensional arrays when posting using Curl