ForceScheduler: Check than one pass a list to the codebases parameter.

This prevent people to use the dict they use in other schedulers.