Modified some tree gens to properly check canBeReplacedByLeaves