FOREACH: ability to handle Java arrays, and Callable objects