strictness optimizations; also, inline toXYZ in Spectrum