Return a RasterLayer if input has only 1 layer.
Whitespace.
Warn if sampleindices are supplied to method that doesn't use them.