Correctly restore arrays. When saving, we clone all arrays with ArrayElements