Support std::function as a parameter to Namespace::addFunction

Sometimes it's convenient to partially apply functions before making the result function accessible from Lua. This request supports that by adding a specialisation of FuncTraits for std::function.