Fix function example in readme

The example for a section key function used nested functions instead of a function that takes three arguments (self, text, render). The example fails on my system (Lua 5.2 Ubuntu). The unit test uses the three argument form.