Fixed stmt_rest and added real_params of procedure or function.