Fix type issues in SPI module for PicoC.