Fix memory leak when breaking out of a for-in loop

Use an autoreleased NSMutableArray rather than id[] to keep the objects alive so that they eventually get deleted if the caller breaks out of the loop.

@alazier @jpsim 
It's the same thing as &state->extra[1]. That bit's just copied and pasted from the old TableView version unchanged.