Fixed: config blocks didn't work for module dependencies

Register() method now first registers module dependencies *before* registering the module itself.
(This was a dumb mistake by me, I registered the module's dependencies in the wrong order)