Make trackperlvars detect var declarations more accurately