title: Funny behavior with numba - guvectorized functions using argmax()
body: <p>Consider the following script:</p>
  
  <pre><code>from numba import guvectorize, u1, i8
  import numpy as np
  
  @guvectorize([(u1[:],i8)], '(n)-&gt;()')
  def f(x, res):
      res = x.argmax()
  
  x = np.array([1,2,3],dtype=np.uint8)
  print(f(x))
  print(x.argmax())
  print(f(x))
  </code></pre>
  
  <p>When running it, I get the following:</p>
  
  <pre><code>4382569440205035030
  2
  2
  </code></pre>
  
  <p>Why is this happening? Is there a way to get it right?</p>