Keep track on repository from which artifact was resolved

This is useful in debugging, but also important for supporting SCL --
auto-requires generator needs to know whether artifact was resolved
from SCL repo or not so that it can generate proper requires.
Implement build dependency visitor