implemented dynamic array element destructor and copy callbacks