Fixes to the memory manager
Don't use the location of the bitfield to store the nextFree
pointer. This can easily lead to trouble when changing the layout
of the bitfield, as a we rely on inUse being 0. Rather use the
location where the vtable is being stored.
Fix the sweep method in the memory manager to correctly insert
all objects into the free list.
Fix mark, to really discard objects that are out of bounds.
Change-Id: I902e46907043c9d4288d0e3d1564460b5b265c4f
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>