TreeEntry: move to use 'id' attribute for the object's id

Similar to the Object change, we should be using 'id' when referring to
the target's id.x