Fixes for writing integer rasters (index maps) from the database. New versions of GDAL always include at least one float when generating ASCII rasters unless the data type is specified explicitly. This patch specifies exporting as integers for index maps and the mask map and floats for the others.