Allocate idealData based on ouputCount, not inputCount.  Issue #157.