array.t: Tests for #7508 and #109726