More buffer fixes.

* If we have a Buffer but no bytes, allocate inside it.
* Use inBuf.bytes in another arraycopy that used inBuf directly.