Fix bug on array marhaling between python and spk