BUG: Fix nanargmax/nanargmin for 1D integer arguments

These functions should return the argument of the *first* max/min value (like
numpy). This was not the case in the current release, since there is special
logic for 1D integer arrays (they are iterated through forwards instead of
backwards like all other array types).