Removed element.scope() calls by using the scope which we compile the  with
Use undefined instead of null for undefined variable
Remove explicitly setting undefined
Merge pull request #141 from petercrona/master

Removed element.scope() calls by using the scope which we compile with