Merge pull request #1166 from pluskid/master

bugfix: HDF5 layer reshape bug
make HDF5 layer support multiple data output
remove the restriction that HDF5 layer generates exactly 2 outputs
added test case to cover new HDF5 behavior