some fixes to the raster data type