Fixed cache.py bug and test

Related to issue https://github.com/edoburu/django-parler/issues/49

Removed the "long" from the format of master_id, so now can support not integer values for primary_keys.