Fix bugs/typos that didn't change output stream due being not used in code path or having equal results.
Improve HRD conformance
New AQ mode: auto-variance AQ with bias to dark scenes

Also known as --aq-mode 3 or auto-variance AQ modification.