Apply HDF5OutputLayer fix to GPU version

only done in the CPU version in #813 (was failing test)