Fix Item#rasterize() to work with new matrices history code.
Fix Raster#getAverageColor() to work with new transforms history code.