Fix conversion functions for arrays (especially for arrays of string)