fixes to ObjectMemory for Cog (linux, win32)