MDXSerializer: fix rest being called after note end
VGMWriter: fix file mode
fixes to mdx2vgm