I believe I found a bug in the software. If the return of a function provides an array of bean, cfformat cancels the word "function" and the name of the function. You can see this here:  Am I doing something wrong?