Bug fix: SPARK-837

[SPARK-837](https://spark-project.atlassian.net/browse/SPARK-837): ResultTask's serialization forget about handling "generation" field, while ShuffleMapTask does