Added a method to reset the memory buffer of the DynArray class.

The the allocated memory will not be touched so the capacity keeps its current level.
Added a method to reset the memory buffer to the XMLPrinter class.

This enables to reset the printer memory to start again from the beginning.
rename Reset to Clear to be consistent with XMLDocument