SPARK-4228 SchemaRDD to JSON

Here's a simple fix for SchemaRDD to JSON.
Seems we are missing `MapType`, `DateType`, and `UserDefinedType`. 

@marmbrus Should we write the string representation (returned by `toString`) for a `UserDefinedType`?