ID "column" can be INT or STRING type.

If using a noSQL backend (via db_cachedb module), the id may be returned as string (by mongoDB).
Reported by Ovidiu Sas
Fixes #173.