Added very crude type path resolution code.