Convenience functions and syntax sugar for using C++ lambdas with the Ruby C API