Add Stack::ShrinkToFit() and some refactoring.
Add Stack::ShrinkToFit() and some refactoring.

Lazy allocation. (so Document not for parsing don't need to allocate
stack).
Remove redundant stackCapacity member variable.

zhengxle/rapidjson,zhengxle/rapidjson,zhengxle/rapidjson