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 #608 from pwendell/SPARK-738

SPARK-738: Spark should detect and wrap nonserializable exceptions