Expose setting recursion limit in the API.