Fix for locally defined aliases not working

add locally aliased targets to the list of references to fetch