Implement generic function callback

Define a custom function with the name '*' to get
called whenever an unknown function is called. The
original function name is the last input argument.