add unit test for serde trait with reference of self

Trying to figure out the cause of https://github.com/twitter/chill/issues/134
Add an unit test for chill to ser/de trait with a reference of self