Geotiff : add datatype security during readLayer(int index)