Rework closure object handling. Now closures can have dependencies, too.
Fix the module initialization order.