Partially implemented Repository.lookup_object (only supports Commit and Tree objects)