Completed cleanup of the code in package org.exist.dom.memtree