Fix added missing typecasts to stack (arm/msba2) and send/receive buffer (native)