r9211: don't try to encode functions in the AJAJ object encoder