NbtSerializationGen: Sped up handling of self-referencing and cross-referencing types by ~20%. The speedup is more significant in concurrent environments or for types that contain arrays/lists of other composite types.