make sure ./ notation in references survives parsing

This matches the `./` before the `.` case in a restricted reference so that the `/` doesn't get turned into an operator. See #1175