A template local scalar definition is shared amongst all instances of the template. Therefore parameterised scalar types should be disallowed by the type checker.
I may be better to change the semantics of scalarset definitions inside a template: Potentially, a bigger reduction is possible if they are not shared between the instances. Thus template parameters may be used in the scalarset definition. However, the type checker then needs to be modified to disallow e.g. comparisons of local scalar variables over local scalarsets from different instances of the same template.
Fixed on the trunk. Local scalar set types from two different instances of the same template are no longer equivalent.