add referenced function to disable/enable indexing/referencing behaviour of the writeObject mechanism.