Fix bug in converting array values to strings.