Adding some support for writing KML objects