TL;DR
Inserters should be able to use a stacksize set by the signal of the item they pick up.What ?
When setting the stack size of an inserter by circuit wire there should be the option to pick the "each" symbol. This should then mean an inserter picking up coal will use the coal signal. An inserter picking up iron plates will use the iron plates signal.Why ?
When building a train station that handles mixed goods it becomes important not to overfill the cargo wagons. Otherwise there will be too much of item A in the wagon and not enough space left to add item B and the train will never leave.In vanilla the train station has no way to read out what the train wants. But you would design the station to fill a train half with iron and half with copper for example. So you know how much of each the train should hold and the train stop tells you how much is already loaded. The usual way is then to compute the amount of missing items and to use (stack) filter inserter with "set filter" to load what's missing. Problems arrise then the train arrives with some items remaining. (Note: With LTN you can read out what the train wants and make it totally dynamic, making this problem far more common.)
The problem there is that if 1 iron ore is missing the stack filter inserter will still load 12 iron ore. This leads to overfilling and dead locked trains. Another problem is that it frequently leaves inserters with items left in the hand hovering over the rail. Then when the next train arrives the items are dropped into the cargo wagon. Potentially items the train doesn't want at all.
The circuit logic to make the inserters only load count perfect items for a multi cargo is rather complex and large and has to fight with getting the timing right and never leaving items in the hand of inserters. The alternative is to try to load roughly the right amount and have an extra filter inserter to take out any excess. This runs into the problem that there might not be any space in the buffer chest to put excess items back. So more circuit logic to make sure space remains to take out items from the train.
To make a long story short: There is no way to select just one signal from a wire and to use that to set both the filter and the stack size for an inserter. And one must "select" a single signal because one has to send the signal itself for the filter and also an "S" signal to set the stack size. If one could configure the (stack) filter inserter to use the signal of the items it picks up to set the stack size then this would make loading trains to exact counts much more simple. Sending 7 iron ore and 5 copper ore would then make the stack filter inserter pick up at most either 7 iron ore or 5 copper ore.
Note: This would also allow loading assemblers or furnace in the ratios of their ingredients making programmable assembler or furnaces easier.