Update accuracy (to S4) to allow model or RasterLayer as first input.