heap: alloc global as a part of context
heap: use `.offsets` instead of magic values