changed gettile arg order to match mbtiles spec
resolved conflict
fixing a syntax issue in the switch on tiles/grids