SPARK-4567. Make SparkJobInfo and SparkStageInfo serializable