(#18739) Make calling functions from Ruby DSL work.

The implementation called a function such as "include" on the scope,
when it should have used "function_include". It also did not pass
arguments in an array as expected by the scope.