I think even with an @log helper, this problem would remain.

This is because you can't pass the output of one helper to another helper.  Although thinking about it now, can you use the bodies parameter to achieve that?