Fix #197, garbage in spectrum on older versions of NumPy.