Fixed a few edge cases when handling enums and non-directly-mappable primitive types (like bool) in NbtSerializationGen. Also improved comments/annotations and refactored a couple things.