Use "ASET (a, i, v)" rather than "AREF (a, i) = v".