Fix and tests for SPARK-3853

In JSONRDD.scala, add 'case TimestampType' in the enforceCorrectType function and a toTimestamp function.