Runtime bytecode generation

- fixed some bug in VectorUtil.