Add checker if the state is ready / Bracket counting
Add deserializer_state UID caching
Fix: We cache statements instead of commands and arguments

Conflicts:
	src/serialize/json/deserializer_state.h
Remove unused deserialize_state helpers
Merge pull request #293 from matthiasbeyer/fix-json_deserializer_state_helpers

Fix some json deserializer state helpers