Use AVal.path to more correctly determine ref target