Fixed compilation warnings, added full tiles check in couchbase_tile_stat function