ClassInstance.addReferredObject replaced by ClassInstance.setField, and
ClassInstance related part of Heap.linkObjects replaced by
ClassInstance.setField.