A and B may alias each other, removed restrict for them and slight changes of the way C elements are accessed.