Fix terrible bug (typo?) in handling arrays of functions.
Merge branch 'more-functions'