Fix REAL indexing bug in SpectralTransform