ArraySegment helpers for VBOS
Merge https://github.com/Codesane/Java-RTS-Project