Add support for serializing LineStrings