Check that an error is reported if too many indices are specified in a foreach loop. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>