Test for punctuator tokens in lookupBlockType. Fixes gh-1856

Closes #1856
I would just move this out of `lookupBlockType` to avoid the declaration evaluation every time `lookupBlockType` is called and then this is good to go.