bugfix: byte count for range requests (%b %B), add test