avoid memcpy
Merge branch 'json-serialization-buffer' of https://github.com/28msec/zorba into json-serialization-buffer