move AstStringPrinter and AstDotPrinter into nth namespace
implement scope checking with some tests
also refactor symbol management