Fix a bug in the evbuffer JsonObject constructor.

We were always reading the first chunk of the buffer, so in the case of a
fragmented buffer, it would not work correctly.

Added a test, as well.