Update AST with better support for imports, scoped variables, and unit tests
Fix scoping and write non-deterministic IR builder test
Adding missing tests