Fix independent modules creating different bundles

When the bundle property was configured in a way that two independent modules should end up in the same bundle (e.g.: bundle: [["foo", "bar"]]) each module would still create its own bundle instead of being in the same.

The problem was that we were collecting the bundle at each moduleId deepLoad instead of each phase deepLoad, so a single bundle was only being generated for a single phase when the first moduleId of the phase depended on all other modules of the phase.

EDIT: not sure about the test though, there's probably a better way.