tokenizer fix

- fix for hierarchy matcher
- readable exception if open block is not enclosed, test for such error