Pass submodule reset as a single argument to foreach