Added bug fix to allow using LinearRing in older shapely versions