Fix overflow issues on writing/reading integers

buffer-browserify does not handle writing and reading out of bounds correctly.

- If you write value out-of-bounds and read it back you always get the full value back. Nothing is cut of.
- If you write value out-of-bounds it can leak to the next buffer in SlowBuffer.

This PR only fixes Integers. Floats probably have same issues.