Payload data for foreign key fields

From a comment on #301: "As an aside, foreign key fields only set indexes, not data. I think it would be a good idea to put those values in the data as well so we can rebuild the entire object from the JSON if necessary."