Fixed a regression in serializing strings via NbtSerializationGen, caused by recent refactoring efforts.
First attempt at compiling serialization code for self-referential/cross-referential classes. Turned out a bit inefficient. Needs something more clever.