copy method returns pointer of copy

src-check errors fixed,

copy method creates new object if NULL is given as destination pointer.