Changed the assumption that dict keys could be custom objects to the assumption that they are strings, because NSJSONSerialization won't be able to serialize them otherwise