Porting DependencyOrder and ILaterFunc to new mirror-core
porting Imp to new mirror-core.