reverted dictlist to the version where deepcopy does not destroy references and added a unit test to make sure the references are maintained