Thanks for pointing out the flaw in the Export function which is just newly added to version 6.22. We will get this fixed in the next release soon. Meanwhile you may be able to get by this by adding the function name as comment to the first line of the custom function.