Currently there is no type checks for function arguments:
https://github.com/antonmedv/expr/blob/425d51925274929795656c4ed3065079d68551ad/type.go#L150-L163
Will be cool to add those. Use reflect for getting function arguments and compare with node's arguments types. Gather types at line 152, get f arguments in line 159 and check.
Same for builtins:
https://github.com/antonmedv/expr/blob/425d51925274929795656c4ed3065079d68551ad/type.go#L143