Fix issue #5061

The lua binding generator can now properly handle function arguments that are of userdata type.