spead_pack fix

parameters for hdr_ctr need to be set simultaneously as cnt_to
value may require a certain number of n_bits and vice versa