Fix deepcopy/pickle error with multi-dim arrays

TestDeepCopy3D passes now