fix bug where ...allocate_output_() might allocate the wrong number of channels if...