I am not sure, this issue could simply be a coding problem. But it did make me aware of another issue that is most definitely not a community bug.
The following code also seems to count TEMPLATES, which I don't think it should.
Code:
var SorcLvl as number
SorcLvl = #totallevelcount[] - #levelcount[Race]
It also made me aware that the 6 CLASS MAX that hero labs has seems to incorrectly give a too many class message when you have templates added to your character. In essence it is counting each template as a separate class, which I don't think is quite correct.
If I posted this in the wrong place I apologize.