Added store and restore methods to MultiTypeTree.