Added Midifile.write/2 function. Varlen tests.