siggen: fix error writing to multi channel soundfiles and fix wavetype input error