fixing tricky gdal issue and starting to write rast2csv test