cclass: wrap cfunction in Lua