Fix bug where `inheritFundeps' goes into a loop when there's a cyclic class structure.
Fix bug where `inheritFundeps' goes into a loop when there's a cyclic
class structure.

FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs