[API Notes] Ensure that modules get rebuilt when binary API notes change.
Extend the solution for ensuring that modules get rebuilt to cases
where the inputs are precompiled binary API notes, rather than just
source API notes that get precompiled into the cache. Fixes the rest