make reset() and allocate() protected in JsonAllocator.

modify doxygen of JsonAllocator.