Utilities for cloning, extending, and de-referencing objects in shallow, deep, and safe ways