Use git_odb_object_data/_size whereever possible

@vmg This is the change to use the odb object accessors that I had suggested...