The writeFeatures method should always return a string

This PR fixes  #2102

All writeFeatures, writeFeature and writeGeometry methods now return a string. The respective methods such as writeFeaturesObject (JSON) and writeFeaturesNode (XML) have been marked api but not stable as yet.
Same as above.  Seems like there is no reason to create `node` when a string is wanted.