Fix --noAncestors with block trees and leaf references.