[RapidJson] Add more tests for JsonErrorLocator.
[RapidJson] In JsonErrorLocator, change the state machine to a stack.