cleanup of pgf math parser