Backport nditer fix op axes initialization

Backports gh-3102. I also stapled on a commit removing the documentation of mask NA iteration flags, which I understand correctly was pulled out of 1.7 but forgotten.