Minor cleanup.
Move all modification of xrefEntry into setters.  Simplify parameters of file.DeletObject().