tiny refactoring reading error gson's JsonElement
changed toString to print optional data header if it is present in the
object.
added toString assertions