Merge pull request #170 from snorfalorpagus/speedup_linestring_clone

Extended geometry cloning for efficient LineString<->LinearRing conversion
Fixed regression in 45ee253 by checking GEOSisRing first.