Fix for ByteBuffers bug.

Also modify the tests to expose the problem.

Also fix bad ByteBuffer handling in TReadableJSONProtocol.
Merge pull request #33 from foursquare/bytebuffers_suck2

Fix for ByteBuffers bug.