Fixed a tuple/int comparison in spatialite backend

On Python 3, comparing tuple with int raises a TypeError.