Arrays box&unbox sequence fix,
More tests for optimize for arrays.