add support for mass registration of C++ functions with lua