BUGFIX: included specific raster:: call to mean() functions where necessary. was failing before without