Fixed a bug in vector_mref::reserve
Extend JSON encoder/decoder to use tag system

Allows the JSON encoder/decode to encode and decode unknown extension
object using byteVector fields.