Fix derivative overflow.
Add averaging filters for rate ratio and end-to-end delay (E2E mode only.)