Updated DebugObject to v5

DebugObject can now run events when an unhandled exception occurs.
Also disabled Runtime optimisation for code that was supposed to
deliberately cause a crash but was previously optimised out by the
compiler.