fixed shallow toArray copy