datCcopy now works with undefined primitive objects