Check that it is possible to omit one or more dimensions in a foreach loop. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>