Surface indirect overrides in "overrides" queries. Ref bug 1030312.

Build the inverse of the overriddens graph during the whole-program pass, and look at it when generating needles.