Fix concatenate for 1d arrays.