Fix handling of param.clip in CompoundPath#draw.
Add test for Raster#getAverageColor(compoundPath).