Adds (de)serialization to ShapePaths