More cleanup, mostly removed unneeded cases from parser and AST.
Added TableValidator + one more test based on it