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