Made reql_func_t only capture the scope it uses.