AvrSpi: adjust semantic of some length parameters so we make use of the
full range of the integer types, plus some cosmetic changes.