Add func::greg_split and func::readarray.