Use offsetof() to determine field offsets for debugscope structs.
Use atomic new for objects which do not reference other pointers (objects, strings, arrays).