fix 1d array pickle bugs