Add hdf5utils functions for Data (not just attributes).

* Add some functions for writing data arrays to HDF5 files.
* Move outputfile type determination to hdf5utils, add this
  capability to the example programs.
Missing address in hdf5utils::writeAttString
Add more useful error messages to hdf5utils that give attribute name.