fix toJSON for arrays
0.0.3