Fix operator= for ndarray for re-assign