Merge pull request #2049 from 9rnsr/fix10101

[REG2.063a] Issue 10101 - static if conditional cannot be at global scope using mixin template