Fix write flag in instruction builder.

Refactors create_seq_instructions() to first separate out the control-flow
instructions from the waveform and marker lists. This gives a much cleaner
condition for checking whether to add a write flag: check if the instruction
start times are the same.