fixes objects being added to the cache as strings
Merge pull request #19 from PRX/fix-cache-handling

fixes objects being added to the cache as strings