SPARK-4743 - Use SparkEnv.serializer instead of closureSerializer in aggregateByKey and foldByKey