Extended geometry cloning for efficient LineString<->LinearRing conversion.

Added code to improve efficiency (using both ctypes and cython) where a
LineString is created from an LinearRing, or vice versa.