Fix recompilation detection when set of signatures to merge changes.