Ensure spikes['chans'] field is always 1D, never 0D
Gracefully handle x0std == 0.0