Fix regression in waveform dumping. Issue #76