Implement splitLastOutput and hook it with the case where we don't have
enough inputs and have to split an output and fulfil just part of it.