Fix up the arrfunc constructor so it makes an arrfunc from a pyfunc