Implemented use ExceptionDispatchInfo for ScriptResult

This pull request closes #381

ScriptResult uses now ExceptionDispatchInfo instead of Exception
Custom Exceptions are now serializable and provide appropriate exception constructors