INBT serializable for @NetworkData

Allow to use custom serialization logic in nbt-based scheme.