encoder: emit an Active Parameter Sets SEI in stream headers if interlaced

The APS is technically required if we're going to be emitting picture timing SEI
which we do for HRD and for interlaced inputs. The lack of APS for interlaced
content was causing a warning from the HM decoder and on Windows the decoder
would later crash.
Added tag 1.4 for changeset 5e604833c5aa
Merge with stable