BUG: Incref items in np.take on error as they are decrefed later

Edit: updated, see commit message.

--

Fixes issue gh-3001