Fixed name/namespace bug in Server::registerFunction()