Wait, what? Are you sure about that?
Andrew was helping me debug this stuff last night and he certainly seemed to be getting gexp to run with locally defined functions. I'll try some stuff out and give the results later today. This might be a very important point and I will file a bug with the results if it works like you say. Either this is a software bug or a documentation bug if it works like that.
@abcdw @charliemac