Fix issue #5061

The lua binding generator can now properly handle function arguments that are of userdata type.
Merge pull request #5270 from CIB/master

Fix issue #5061