Make serialization and deserialization work for stroke and fill nodes.
It's unused in this commit. This just prepares the new object.