hdf5 simulation output: improve performance when saving spike trains.