(de-)serialization is now working as expected. Might look into a way to combine serialization and deserialization into one macro.