add try/catch around functionparser to give more info

It is frustrating if you have a parser error inside FunctionParser
because it won't tell you which expression is wrong or which parameter
in the prm is wrong. This is now fixed.
Merge pull request #38 from tjhei/better_function_parser_errors

add try/catch around functionparser to give more info