Add a loop-on-empty-array test.

This corresponds to the recent fix in CArrayForBackwards.