Use PTable instead of PTable to avoid copying
added TTagId to TTagDef
Use tag IDs for context. Parsing is still slow.
Refactoring