Fix pointers in copying & mark-compact diagrams