Added a simple scala embedding for the IR, which allows us to express lambdas easily.