sim: Simplify `slot` parameters
sim: Simplify `slot` parameters

Many places in the image code pass a pair of

    slots: &[SlotInfo], slot: usize,

around as arguments.  Simplify this by just passing a `&SlotInfo`.  For
the few instances where code needs to know the index of a slot, add an
index field to the `SlotInfo` struct for these to use.  This eliminates
an argument from 4 functions/methods, and the numerous places they are
called.

Signed-off-by: David Brown <0af22db655f3ade5845314d695c1f4910314b0cb@linaro.org>

runtimeco/mcuboot,tamban01/mcuboot,ATmobica/mcuboot,utzig/mcuboot,ATmobica/mcuboot,runtimeco/mcuboot,tamban01/mcuboot,tamban01/mcuboot,utzig/mcuboot,utzig/mcuboot,runtimeco/mcuboot,tamban01/mcuboot,tamban01/mcuboot,runtimeco/mcuboot,utzig/mcuboot,runtimeco/mcuboot,utzig/mcuboot,ATmobica/mcuboot,ATmobica/mcuboot,ATmobica/mcuboot