sha1_file: add the ability to parse objects in "pack file format"