Add a test for i.
Fix an issue caused by last_numarg not being reset correctly.