Optimize ByteArrayInputStream

This saves a few seconds at startup. It's also used a lot in general, so it's worth implementing it in JS.
Which also means that this function only ever accesses nLong once, so you might as well convert it to a number immediately and save a local variable:

```
var n = stack.pop2().toNumber(), …
…
stack.push2(Long.fromNumber(n));
```