compiler. AST validation state, fixed message inheritance validation, fixed #332.