afc::mean() is made a template function.