Fixed efficiency bug in ExpressionParser

When a function or variable was being added, the expression was being parsed
twice each time. Now it is only parsed the once.