Pab/aldor patches

These patches are enough to make funny.as work, and a few other examples I tried.

Note that it'll need the latest version of aldor to work.