Made SparkContext variable transient in SparkContextFunctions (PR #373 by @critikaled)