Fixes #464, allow stubModules and deps to be arrays