Multiple fixes

JPEG decompress of grayscale as RGB when needed
Fix the avg mode for overviews, when nodata is defined
DEFLATE now an option after packing