json trace: log error on non representable arguments

whenever an event contains an argument which cannot be represented
in json, we log a special entry with:
  cat="spdr-error"
  name="arg-serialization"

and the string representation of the first argument that could not be
represented