bugfix: HDF5 layer reshape bug

The order of (height,width) is inverted as (width,height) in HDF5 data layer. The original test case had equal width and height, thus is also updated to cover this case.