added support for arrays as function arguments and for unistr_noterm