yah this has in fact been reported before, but i couldn't find the post when i tried to search.. but it's quite an old bug i've been waiting to see fixed :P and as dave said it seems to happen whenever you try to combine pieces of a variable name with $+ or $+()
to 'solve' the problem you could also enclose any variable that would otherwise be seen as a new var declaration in $() or a single pair of evaluation brackets as mentioned.. or even declare the variable with /var then change its value with /set later on, a lot of workarounds
still would be nice if it worked correctly though