SPARK-738: Spark should detect and squash nonserializable exceptions
Removing unnecessary map
Changing technique to use same code path in all cases
Removing import
Small fix
Capturing class name
Merge pull request #609 from pwendell/SPARK-738-0.7

SPARK-738 (branch 0.7 backport) Fixing nonserializable exception bug