Performance improvement: SerialDependencyResolver cyclic dependencies detection is united with building the module order.