These properties are <xs:sequence> and must be in this explicit order.

Fixes downloading attachments for some clients, in certain situations.
Range is zero based, fix ending byte count.
Remove dead code.