Basic references functionality
References resolver (tsort)