Detect and fix Flash ExternalInterface data fidelity loss

Also adds a new event type `error[name="flash-degraded"]`

Fixes #489
Fixes #506.