Fix element access const correctness in hostdevice_vector
#10804
+18
−9
hostdevice_vector
#10804