Fix raster import warnings.

But still have R CMD CHECK note that can only be fixed if I change to using importFrom with the raster package.