Implement Index/IndexMut for [T]

Closes #16529

r? @aturon