Fixed var_decl and implemented basic return by ref