reference/functions: document max(), min(), mean(), and variance()
Merge pull request #338 from tzz/doc/folding-functions

reference/functions: document max(), min(), mean(), and variance()