Fix for spin0

The C++ code assumes arrays are initialized to zero.