Few bug fixes related to types. Improved type detection. Tested successfully with kml, tif, jpg, ascii raster, Grid, and shapefile.