Implement equals for Offset and Range
Make transcode return sha1 optional

As it is missing in the error case anyway