Change collection attributes to arrays.