Type promotion for indices arrays and casting vals in integer indexing
#1647
+237
−60
indices arrays and casting vals in integer indexing
#1647