Added var optimization to pointer/num expressions