[fix issue #1107] track which resource versions are chosen during resolution

fix issue #1107