https://bugzilla.wikimedia.org/show_bug.cgi?id=60213
Merge pull request #110 from a-demakov/master

Type mismatch when caching SMW IDs