Consolidate rt_make_function_[0123] to rt_make_function_n.