This always returns a LineSet. However, there is no implicit conversion from a jts: Geometry to a LineSetResult, and it didn't fit in with the boundary implementations for the other types to not return a result type. But, the PolygonSetBoundaryResult didn't feel right either. Any thoughts?