Optimize java.internal.HaxeException

This patch enhances performance of exceptions-as-control-structures style programs, e.g. `throw new haxe.io.Eof();`