Fixed a few bugs introduced by splitting off the ooolibBasic finctions.
Authored by: chiasmus1 2009-08-27
Parent: [r20]
Child: [r22]