Fix copying of empty (unallocated) dynamic array fields