Added a few features and a new test.

 * basic loop support (while .. repeat)
 * return statement (actually an expression)
 * fixed the creation of function's environment
 * handle if-then(-else) as statement (expression with Void type)