BUG: fix potentially infinite recursion in VOID_nonzero. Fixes #3312.