in subsetRaster, x can now be a character (pointing to a multilayer raster object written on disk)