Edge cases of Range header are standards compliant

Fix a few Range header edge cases to ensure that it is as standards-compliant as possible.

Note: builds on #806