Bugfixes

A few bugfixes. 

Last fix (invoking scriptmethods) was recently added to lape branch (at google code), so you can drop that one if you just grab the version from Niels (which is pretty much the same I think).