make HDF5 layer support multiple data output
added test case to cover new HDF5 behavior
Merge pull request #1183 from pluskid/hdf5layer