Corrected issue in compiler where index was always null for assignment
to store instructions.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>