Revert "https://bugzilla.wikimedia.org/show_bug.cgi?id=60213"

This reverts commit 306d42726eb1fcef1eb1166a995694082e09b6e5.
Merge pull request #117 from SemanticMediaWiki/regression-110

Revert "Type mismatch when caching SMW IDs"