fixes for native bridge JSON encoding of tricky event data