Add mode.dependencies to runmode-standalone

(So that it plays nice with loadmode)
Use simpler way to convert mode dependencies to an array