fix typos in sxfun
implement arrayfun