fix compilation of array items assignment when using index allocation