Add support for java.util.Collection to utils.foreach()