Even-odd parity oscillations in spin polarization of a quantum dot array