Fix for #36: loadMethods is crashing in v0.0.21

Apply @jakobdamjensen 's fix for save- and loadObject methods.