Bugfix: Properly compute data set size during checkpointing

Previously the binary reaction data writer would assume that
the total length of the simulation would alwasy be given by
the number of iterations which may not the the case during
checkpointing. The updated code now takes CHECKPOINT_ITERATIONS
into account.