Updated 'ByteArrayOutputStream' & 'CharArrayWriter', and fixed ArrayIndexOutOfBoundsException.
Better cast to ScriptRuntimeException
fixed IntegerOutResolver cast misstake
Moved lib-assert to tools module.