Implement lua functions with 0 or 1 argument and return value