SPARK-4228 SchemaRDD to JSON

Here's a simple fix for SchemaRDD to JSON.
I think we need to keep `null`s in an array. Otherwise, the information carried by the array will be changed.