Add error identification in deserializer code

This PR introduces some simple error identification by setting
appropriate variables.

Targets #467 partly, as it removes **some** `@todo`s from
`src/serialize/json/deserializer_callbacks.c`.