Add copy constructor to databuffer.