Fix issue 10236: allow template parameters in Params section + test