Corrections in callback management & added functionality to exception objects

Callback management:
+ corrects error when the callback throws an exception back to the script
+ corrects type error, when the scripts calls a typed callback with a value of a different type, enabling classic javascript auto type conversion for external functions

Exceptions:
+ adds error number in exception object and .what() interface, to allow of simplified generic catch handlers.