Re-implemented copyreg picklers/unpicklers for DAL and Reference classes (due to errors on sessions)