Improved the splitting mechanism

Now the splitter understand the concept of `kind`. Items of the same kind are grouped together, whereas items of different kinds go in different groups, even if their weight would be lower than the maximum weight.
This is used in the companion PR on the engine, to split on the ruptures per tectonic region type.