Sealed class for geometry, kotlinx serialization
- change the geometry interface to be a sealed class
- add
Serializable
annotations for kotlinx.serialization; this adds a dependency on kotlinx serialization unfortunately. I may split this off into a separate library at some point. Let me know if this bothers/blocks you.
Thanks @NikkyAI for the PR.