Cleans up PersistentList's toArray.