cleaned printer a bit
added get ast to Element interface
test script runs in checked mode
more elaborate scoping test
solves variables correctly - bug with functions