Fix a reference bug

When rows were being cleared, the top rows were copied down by
reference,
leading to nasty bugs once enough rows were copied. A deep copy is now
used
instead, which works correctly, as expected.