Fix for 8beb0426190

Turns out the vtk object is deleted before the ->name fields are copied
over. So we *do* need to allocate it and copy instead of just copying
over the pointer.