rtp/gir: Manually implement RtpHeaderExtension read() and write()
The array size is now provided since 1, yet mutability and *Ref
makes it impossible to generate these functions properly. Implement
them by hand.
Also include a small conversion to Rust 1.53's nested or_patterns in the examples, which is the only use found thus far.
Edited by Marijn Suijten