Roxie splitter selftest

You could short-circuit minIndex() by returning if any input was < tailIdx.  Only likely to help for large numbers of outputs.