minor fixes to `setDT`

`setDT` lost ExtPtr ref. is now fixed.
Class attributes to data.frame are now preserved.