misc fixes for reshape
general array set
fix INDArray set