SpreadMax bug with bin size

As the title say, paste this into a dynamic plugin

using System;
using System.ComponentModel.Composition;
using VVVV.PluginInterfaces.V1;
using VVVV.PluginInterfaces.V2;

namespace VVVV.Nodes
{
	[PluginInfo(Name = "SpreadMaxBug", Category = "Value", Help = "Basic template with one value in/out", Tags = "")](PluginInfo(Name = "SpreadMaxBug", Category = "Value", Help = "Basic template with one value in/out", Tags = ""))
	public class ValueSpreadMaxBugNode : IPluginEvaluate
	{
		[Input("Input", DefaultValue = 1.0)](Input("Input", DefaultValue = 1.0))
		public ISpread<ISpread<double>> FInput;

		[Output("Output",IsSingle=true)](Output("Output",IsSingle=true))
		public ISpread<double> FOutput;
		public void Evaluate(int SpreadMax)
		{
			FOutput[0](0) = SpreadMax;
		}
	}
}

Set input to a spread while keeping bin size of -1

SpreadMax should stay 1 (since bin size is -1), but instead it gives the size of the spread instead.

the computation of SpreadMax is not aware of higher order spreads.

just use CombineWith extension methods on spreads to compute a proper slice count, that reflects the slice counts of the outermost spreads of the given pins.

yes, that one is annoying… maybe its possible to fix it in the plugin interface, since the spreadcount can be easily derived from the binsize pin…