Fix-GEOS-6114 (tests and minor fixes by Andrea Aime)
[GEOS-6413] The new KML encoder can leak unclosed feature iterators