Revise flushing:
* XML::Writer.flush: for a in memory writer, it returns the current content
(as String) of internal buffer. In others cases, it returns the number of
written bytes. Besides, if its unique argument is true (default), the internal
buffer is erased for a in memory writer.
* XML::Writer.result: flush output before fetching result