It failed to compile because of two issues:
luawrapper did not handle methods returning void properly
luawrapper did not handle references and const references in the 'Args' template expansion in luaU_FuncWrapper.
I fixed the first issue by adding a separate luaU_FuncWrapper template for void functions, and the second issue by removing const qualifiers and references from the 'Args' expansion. (note: do we need to remove volatile qualifiers as well?)
Please note that I've tested these changes only on GCC 4.8.1, I`m planning to test it on other compilers as well as soon as I have some free time.