avutil/eval: add function to track variable use