When saving, toArray must not flatten data