meanRef multichannel/slice bug fix

input handling fixes