tmp-format: copy data when creating a TmpData object

* TmpData cannot be held responsible of removing a data buffer
  that has been created outside TmpData. Thus, TmpData copies
  the contents of the buffer passed in the constructor to its
  own buffer.
tmp-format: adapt parse function to the new TmpData
tmp-format: remove unnecessary copy to intermediate buffer