[SQL] SPARK-1364 Improve datatype and test coverage for ScalaReflection schema inference.