Added a function to dump java exception
Whitespace fixes
Throw IllegalArgumentException instead of RuntimeException

Reason for this change is that RuntimeException is used in Java space
so much that properly catching it with debugger is PITA.
Update cext to correspond defineReadonlyVariable change in jruby