Fixed exponentiation

Parser no longer chokes on f(x)^{n}g(y)^{m} or fancy \matrix^{n}