fixup! Refactor out fsck_object_buffer() accepting the object data

Needed for unpack-objects --strict to pass... Found by t5537.