The parser forbids the declaration of constant scalars. However, scalar templateset parameters can safely be declared constant, as any swap of two processes will be followed up by a swap of the values of the scalar parameters. Hence scalar templateset parameters are never changed by swapping scalar elements.
Fixed on the trunk.
Resolving bug.